package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main=Thread.currentThread();
        System.out.println("主线程："+main);
        dosome();
        Thread t1=new dothink();
        t1.start();
    }
    public static void dosome(){
        Thread t =Thread.currentThread();
        System.out.println("执行dosome方法放的线程"+t);

    }



}

class dothink extends Thread{
    @Override
    public void run() {
        super.run();
        Thread t1=dothink.currentThread();
        System.out.println("dothink:"+t1);

    }
}
